/****** Object:  Stored Procedure [dbo].spLuuKhoUpdate Script Date: 8/6/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spLuuKhoUpdateStock]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spLuuKhoUpdateStock]
GO

/******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**		07/08/2012	SongTM					Innit created
*******************************************************************************/

CREATE PROCEDURE [dbo].[spLuuKhoUpdateStock]
(
	@MaLuuKho int,
	@TongNhap int,
	@TongXuat int,
	@TonKho int
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_LuuKho]
SET 
	[TongNhap] = @TongNhap,
	[TongXuat] = @TongXuat,
	[TonKho] = @TonKho
WHERE	[MaLuuKho] = @MaLuuKho
GO

--GRANT EXECUTE ON [dbo].[spLuuKhoUpdate] TO [sa]
--GO
